import { IsNotEmpty, IsString, Length } from 'class-validator';
export class CreatePipeVerifyDto {
  @IsNotEmpty()
  @IsString() // 字符
  @Length(1, 3, {
    message: '长度错误',
  })
  name: string;

  @IsNotEmpty() // 不能为空
  age: number;
}
